// 将时间转时间戳，用于时间段过期判断
const  getStartTime=function(time, dateTime) {
	dateTime = dateTime + ' '
	let day = new Date(dateTime).getTime()
	let arr = time.split(':')
	// 只取到前两个成员
	let str1 = arr[0]
	let str2 = arr[1]

	let sarr1 = str1.split('')
	let sarr2 = str2.split('')
	let sum1 = 0
	let sum2 = 0
	let sum = 0
	sum1 = (parseInt(sarr1[0]) * 10 + parseInt(sarr1[1])) * 60 * 60 * 1000
	sum2 = (parseInt(sarr2[0]) * 10 + parseInt(sarr2[1])) * 60 * 1000
	sum = sum1 + sum2 + day
	return sum
}

module.exports = getStartTime